import requests


def get_header():
    resp = requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",
                         json={"mobile":"13800000002","password":"123456"})
    # 提取令牌
    token = resp.json().get("data")

    # 组织成 请求头，返回
    return {"Authorization":token}

if __name__ == '__main__':
    header = get_header()
    print(header)